home *** CD-ROM | disk | FTP | other *** search
- Path: cedarnet.cedarville.edu!usenet
- From: Tim Hansell <hansellt@cedarville.edu>
- Newsgroups: comp.lang.c
- Subject: Re: Can C++ run DOS .exe files?
- Date: Tue, 05 Mar 1996 13:17:18 -0800
- Organization: Cedarville College
- Message-ID: <313CAF5E.5207@cedarville.edu>
- References: <Pine.SUN.3.91.960302145426.22358A-100000-100000-100000-100000@wally.uofport.edu>
- NNTP-Posting-Host: hansellt2.cedarville.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Paul George wrote:
- > I'm involved in a project which requires C++ to call a DOS executable
- > file, and then return back to the C++ program upon finishing?
- >
- > I have looked in several C and C++ books, but I have yet been able to
- > find an answer to this question. At the very least,
- > I would like to find
- > a C/C++ program which can shell to DOS?
-
- It's not a question of C++ having the facility to "shell" to DOS, but
- rather does the compiler you are using supply a library call which
- can call the DOS function which starts a program and then waits until it
- is finished.
-
- I would say, you could probably write a C++ callable assembly routine
- to do what you wanted, but it all depends upone the compiler you are
- using.
-
- -tim
-